## makefile of huffcodec program
OBJ = main.o priority-queue.o bit-stack.o utility.o
## for windows system, PROGRAM should be huffcodec.exe
PROGRAM = huffcodec
## for windows system, CC should be a proper C compiler
CC = gcc
## for windows system, DELCMD should be 'del'
DELCMD = rm

$(PROGRAM): $(OBJ)
	$(CC) -o $(PROGRAM) $(OBJ)

$(OBJ): %.o: %.c
	$(CC) -c $< -o $@

.PHONY: clean

clean:
	$(DELCMD) $(OBJ) $(PROGRAM)
